package com.itmd.contorller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/quick1")
    public ModelAndView save1(ModelAndView modelAndView) {


        modelAndView.addObject("name","itmd");
        modelAndView.setViewName("index");
       return modelAndView;
    }

    @RequestMapping("/show")
    public ModelAndView show() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("index");
        modelAndView.addObject("name","牟东");
        return modelAndView;
    }
}
